import { createApp } from 'vue'
import { createPinia } from 'pinia'
import "./assets/css/common.css";

import App from './App.vue'
import router from './router'
import ElementPlus from 'element-plus'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import 'element-plus/dist/index.css'
import "amfe-flexible/index.js";

// 引入echarts
import  Echarts  from 'vue-echarts'
import * as echarts from 'echarts'

 
const app = createApp(App)
app.use(createPinia())
// 使用组件
app.component('e-charts',Echarts)
// 全局挂载 echarts
app.config.globalProperties.$echarts = echarts
app.use(router)
app.use(ElementPlus, {
    locale: zhCn,
  })
app.mount('#app')